/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package contabilidad;

import conexion.CConexion;
import java.sql.SQLException;
import java.sql.Statement;

/**
 *
 * @author SISTEMAS
 */
public class CCo012 extends CConexion {

    public CCo012() {
        super();
    }

    public void actualizarNumero(int noas, int nodi) throws SQLException {
        Statement stnc = this.getConexion().createStatement();
        noas++;
        nodi++;
        String sql; //= "UPDATE co040 SET co040noas='" + noas + "' WHERE co040nocia='" + nocia + "'";
        // stnc.executeUpdate(sql);
        sql = "UPDATE co012 SET co012nume='" + nodi + "' WHERE co012nocia='" + login.getCompaniaActual() + "' and co012cdco='DG'";
        stnc.executeUpdate(sql);
    }
}
